package com.wicket.okrapp.web.contorller;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.biz.service.PlanTargetAccountService;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 * 
 * @version 1.0
 */
@RestController
@RequestMapping("/app/planTargetAccount/")
public class PlanTargetAccountController {
    @Autowired
    PlanTargetAccountService  planTargetAccountService;
/**
   * D3-9发布批次处理规划账户更新状态(公共)
   */
    @PostMapping("releaseBatchHandlePlanAccountUpdStatusCom")
    public OkrResult<ReleaseBatchHandlePlanAccountUpdStatusComRespDto> releaseBatchHandlePlanAccountUpdStatusCom(@RequestBody @Validated ReleaseBatchHandlePlanAccountUpdStatusComReqDto reqDTO){
    return OkrResult.success(planTargetAccountService.releaseBatchHandlePlanAccountUpdStatusCom(reqDTO));
    }
/**
   * D3-9撤销批次处理规划账户更新状态(公共)
   */
    @PostMapping("undoBatchHandlePlanAccountUpdStatusCom")
    public OkrResult<UndoBatchHandlePlanAccountUpdStatusComRespDto> undoBatchHandlePlanAccountUpdStatusCom(@RequestBody @Validated UndoBatchHandlePlanAccountUpdStatusComReqDto reqDTO){
    return OkrResult.success(planTargetAccountService.undoBatchHandlePlanAccountUpdStatusCom(reqDTO));
    }
}
  